Skip to content

refactor!: spell out abbreviated type names (Ctx→Context, Dict→Dictionary)#49

Merged
dfa1 merged 1 commit into
mainfrom
refactor/full-word-type-names
Jun 28, 2026
Merged

refactor!: spell out abbreviated type names (Ctx→Context, Dict→Dictionary)#49
dfa1 merged 1 commit into
mainfrom
refactor/full-word-type-names

Conversation

@dfa1

@dfa1 dfa1 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

What

Rename the four abbreviated public types to full words, matching the existing Zstd<Compress|Decompress><Stream|Parameter> family and zstd's own prose ("compression context", "dictionary"):

Old New
ZstdCompressCtx ZstdCompressContext
ZstdDecompressCtx ZstdDecompressContext
ZstdCompressDict ZstdCompressDictionary
ZstdDecompressDict ZstdDecompressDictionary

Why

Ctx/Dict were the only abbreviations left in the public surface — ZstdCompressParameter, ZstdCompressStream, ZstdDictionary, ZstdDictionaryId already spell out. zstd's C tokens abbreviate (CCtx/CDict) but its prose does not; this binding follows the prose. Java idiom favors full words.

Scope

All main code, tests, docs, README, benchmarks, smoke, ADR. Breaking — noted in CHANGELOG [Unreleased]; released history left intact.

zstd-jni (luben) has its own ZstdCompressCtx/ZstdDecompressCtx/ZstdCompressDict; those references in interop tests/benchmarks are deliberately untouched.

Verification

  • ./mvnw test — 261 unit + 81 integration, all green
  • ./mvnw javadoc:javadoc -pl zstd — zero output (cross-refs resolve)
  • code-review (high effort) — no findings

🤖 Generated with Claude Code

Rename public types to full words, matching the Zstd<Compress|Decompress>
<Stream|Parameter> family and zstd prose ("compression context", "dictionary"):

- ZstdCompressCtx   -> ZstdCompressContext
- ZstdDecompressCtx -> ZstdDecompressContext
- ZstdCompressDict   -> ZstdCompressDictionary
- ZstdDecompressDict -> ZstdDecompressDictionary

Updates all code, tests, docs, README, benchmarks, smoke. luben (zstd-jni)
ZstdCompressCtx/Dict references in interop tests/benchmarks left untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 354261a into main Jun 28, 2026
1 check passed
@dfa1 dfa1 deleted the refactor/full-word-type-names branch June 28, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant